/*
 * @Author: malgee
 * @Date: 2025-04-24 16:57:37
 * @LastEditors: maling
 * @LastEditTime: 2025-04-27 16:55:00
 * @FilePath: /vue3-ts-cms/src/service/main/system/system.ts
 * @Description: 
 * 
 */
import axiosHttp from '@/service'

export function fetchRoleData(query: any) {
  return axiosHttp.get({
    url: '/role/list',
    params: query
  })
}

export function fetchDepartmentData(query: any) {
  return axiosHttp.get({
    url: '/department/list',
    params: query
  })
}

export function fetchMenuData(query: any) {
  return axiosHttp.get({
    url: '/menu/list',
    params: query
  })
}

/**
 * 获取分页数据
 * @param url url
 * @param query 查询参数
 * @returns 
 */
export function fetchPageList(url: string, query: any) {
  return axiosHttp.post({
    url,
    data: query
  })
}